package work.mediway.web.controller;

import com.github.xiaoymin.knife4j.annotations.ApiSupport;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import work.mediway.common.transport.ResponseVO;

/**
 * @author lipengfei_ylrj <lipengfei_ylrj@mediway.cn><br/>
 * @date 2023/3/21
 */
@Api(tags = "测试接口")
@Validated
@RequestMapping("cdrmp")
@ApiSupport(order = 0)
@RestController
@Slf4j
public class WebTestController {
    @Value("${emrmp.test}")
    private String testvalue;

    @RequestMapping("/cdrmp")
    public ResponseVO test() {
        return ResponseVO.success(testvalue);

    }
}
